package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商户收藏表
 * </p>
 *
 * @author Author
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_shop_collect")
public class UserShopCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 商户id
     */
    private Integer shopId;

    /**
     * 添加时间
     */
    private LocalDateTime createTime;

    /**
     * 省code
     */
    @TableField(exist = false)
    private String provinceCode;

    /**
     * 市code
     */
    @TableField(exist = false)
    private String cityCode;

    /**
     * 店铺名称
     */
    @TableField(exist = false)
    private String merchantName;

    /**
     * 店铺log
     */
    @TableField(exist = false)
    private String headImage;

}
